#!/bin/bash

# 构建项目
echo "构建项目..."
npm run docs:build

# 检查构建是否成功
if [ $? -eq 0 ]; then
    echo "构建成功！"
    echo "构建文件位于: D:/nginx-config-docker/nginx/html/SystemPlanningAndManagementEngineer"
    echo "网站访问地址: http://your-domain/SystemPlanningAndManagementEngineer/"
    echo "配置为二级路径部署，所有资源路径已自动处理"
else
    echo "构建失败！"
    exit 1
fi 